package com.cloud.socket;

import org.springframework.stereotype.Component;

import java.lang.annotation.*;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface SocketConsumer {

    /**
     * Socket服务端地址
     *
     * @return
     */
    String socketHost();

    /**
     * Socket客户端编号,注意客户端编号不能重复
     *
     * @return
     */
    String socketCode();

}